<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>

    <link rel="stylesheet" type="text/css" href="/stylesheets/bootstrap.css">
    <script type="text/javascript" src="/javascripts/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="/javascripts/bootstrap.js"></script>
    <style>
        .fontSize15 {
            font-size: 15pt;
        }

        .fontSize20 {
            font-size: 20pt;
        }

        .fontSize30 {
            font-size: 30pt;
        }

        .fontSize50 {
            font-size: 50pt;
        }

        .colorWhite {
            color: white;
        }
        .homeText:hover{cursor: pointer}
        .loginDiv{background-color: rgba(255,255,255,0.4);}
        .adminDiv{background-color: rgba(255,255,255,0.6);padding-top: 10px;padding-bottom: 10px;text-align: center;border-radius: 5px 6px 7px 8px;}
    </style>

    <% if(1==code) {%>
        <script>alert("恭喜您注册成功")</script>
    <%}%>
    <% if(2==code) {%>
        <script>alert("抱歉，注册失败了")</script>
    <%}%>
    <% if(3==code) {%>
        <script>alert("用户名或密码错误，请重新输入")</script>
    <%}%>
    <% if(4==code) {%>
        <script>alert("您不是管理员，没有进行扫描登录的权限，请重新登录")</script>
    <%}%>
</head>
<body background="images/bg-blueSky.jpg">
<nav class="navbar navbar-inverse">
    <div id="navbar" class="navbar-collapse collapse">
        <span class="fontSize30 colorWhite homeText" onclick="location.href='#'"><img src="/images/02.png" style="height: 90px" alt="邀约">&nbsp;&nbsp;&nbsp;邀约管理系统</span>
    </div>
</nav>
<div class="container-fluid">
    <div class="row">

        <div class="col-md-12">
            <div class="row">
                <div class="col-md-12" style="height: 120px;text-align: center;padding-top: 40px;">
                </div>
            </div>
            <div class="row">
                <div class="col-md-4">
                </div>
                <div class="col-md-4 loginDiv" >
                    <div class="row adminDiv" >
                        <span class="fontSize20">
                            登录
                        </span>
                    </div>
                    <div class="row" style="margin-top: 20px;">
                        <form action="/login" method="post" class="form-horizontal" role="form" action="#">
                            <div class="form-group">
                                <div class="col-sm-1"></div>
                                <label for="username" class="col-sm-3 control-label">
                                    <span class="fontSize15">用户名:</span>
                                </label>

                                <div class="col-sm-6">
                                    <input type="text" class="form-control" id="username" name="username" value="<%if(localUsername!=undefined){%><%= localUsername %><%}%>" required oninvalid="setCustomValidity('请填写用户名');" oninput="setCustomValidity('');" />
                                </div>
                                <div class="col-sm-1"></div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-1"></div>
                                <label for="password" class="col-sm-3 control-label">
                                    <span class="fontSize15">密码&nbsp;&nbsp;&nbsp;&nbsp;:</span>
                                </label>

                                <div class="col-sm-6">
                                    <input type="password" class="form-control" id="password" name="password" required oninvalid="setCustomValidity('请填写密码');" oninput="setCustomValidity('');"/>
                                </div>
                                <div class="col-sm-1"></div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <div class="checkbox">
                                        <label>
                                            <input type="checkbox" name="isRemember" checked/> 记住我
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-2">&nbsp;</div>
                                <div class="col-sm-offset-2 col-sm-8">
                                    <button type="submit" class="btn btn-default">
                                        登录
                                    </button>
                                    <a href="toRegister" style="margin-left: 100px;">注册</a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="col-md-2">

                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>